package com.mdd.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigDecimal;

@Data
@ApiModel("分享明细实体")
public class ShareDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "")
    private Integer id;

    @ApiModelProperty(value = "订单id关联")
    private Integer orderId;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "分享人id")
    private Integer shareUserId;

    @ApiModelProperty(value = "购买用户id")
    private Integer userId;

    @ApiModelProperty(value = "佣金金额")
    private BigDecimal brokerage;

    @ApiModelProperty(value = "可获得佣金")
    private BigDecimal gainBrokerage;

    @ApiModelProperty(value = "是否购买（0、未购买 1、购买 默认0）")
    private Integer isBuy;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "修改时间")
    private Long updateTime;

    @ApiModelProperty(value = "用户头像")
    @TableField(exist = false)
    private String avatar;

    @ApiModelProperty(value = "用户昵称")
    @TableField(exist = false)
    private String nickname;

    @ApiModelProperty(value = "用户账号")
    @TableField(exist = false)
    private String username;

    @ApiModelProperty(value = "用户昵称")
    @TableField(exist = false)
    private String mobile;

    @ApiModelProperty(value = "商品名称")
    @TableField(exist = false)
    private String goodsName;




}